package ejb.dto;

import java.util.Date;

public class ExcursionAvailabilityDTO {
	
	private int id;
	private Date fromDate;
	private int remaining;
	private Date toDate;
	private ExcursionDTO excursion;	
	private int excursionId;
	private String excursionName;
	private float excursionPrice;
	
	//GETTER AND SETTER
	
	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Date getFromDate() {
		return this.fromDate;
	}

	public void setFromDate(Date fromDate) {
		this.fromDate = fromDate;
	}

	public int getRemaining() {
		return this.remaining;
	}

	public void setRemaining(int remaining) {
		this.remaining = remaining;
	}

	public Date getToDate() {
		return this.toDate;
	}

	public void setToDate(Date toDate) {
		this.toDate = toDate;
	}

	public ExcursionDTO getExcursion() {
		return this.excursion;
	}

	public void setExcursion(ExcursionDTO excursion) {
		this.excursion = excursion;
	}

	public int getExcursionId() {
		return excursionId;
	}

	public void setExcursionId(int excursionId) {
		this.excursionId = excursionId;
	}
	
	public float getExcursionPrice() {
		return excursionPrice;
	}

	public void setExcursionPrice(float excursionPrice) {
		this.excursionPrice = excursionPrice;
	}

	public String getExcursionName() {
		return excursionName;
	}

	public void setExcursionName(String excursionName) {
		this.excursionName = excursionName;
	}
	
	//METHODS
	
	@Override
	public boolean equals(Object obj) {
		if(obj==null) {
			return false;
		}
		ExcursionAvailabilityDTO h = (ExcursionAvailabilityDTO) obj;
		if(this.id == h.getId()) {
			return true;
		}
		return false;
	}

	

}